class Pond
  def initialize(number_animals, number_plants)
    @animals = []

    number_animals.times do |i|
      animal = new_organism(:animal, "animal #{i}")
      @animals << animal
    end

    @plants = []

    number_plants.times do |i|
      plant = new_organism(:plant, "plant #{i}")
      @plants << plant
    end
  end

  def simulate_one_day
    @plants.each { |plant| plant.grow }
    @animals.each { |duck| duck.eat }
    @animals.each { |duck| duck.speak }
    @animals.each { |duck| duck.sleep }
  end
end
